import request from '../request.js';

export default {
	getChatNum() { // 获取vid
		return new Promise((resolve, reject) => {
			uni.request({
				url: 'https://sra.mogoie.com/echat/User/manage_unread_message',
				method: 'GET',
				data:{
					shop_id: uni.getStorageSync('store_id')
				},
				dataType: "json",
				header: {
					'content-type': 'application/x-www-form-urlencoded',
				},
				success: function(res) {
					if(res.data.code == 200){
						resolve(res.data.data)
					}
				}
			})
		})
	},
}
